package com.chapal.ib.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.log4j.Logger;

public class HistoricalData extends TickData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6090042967865861632L;
	static final Logger logger = Logger.getLogger(HistoricalData.class);
	private final String dateFormat = "yyyyMMdd HH:mm:ss";
	private Date date;

	public void setDate(String date) {
		try {
			final SimpleDateFormat formatDate = new SimpleDateFormat(this.dateFormat);
			this.date = formatDate.parse(date);
		} catch (final Exception e) {
			HistoricalData.logger.error("Dormat Error", e);
		}
	}
}
